package com.youan.serve.controller.swagger;

import com.youan.pangu.base.exception.BusinessException;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.List;
import com.youan.serve.dao.domain.Function;

/**
* <p>
    *  swagger接口描述文件
    * </p>
*
* @author auto_code
* @since 2020-03-04
*/
@Api(tags = "管理接口")
public interface FunctionControllerSwagger {

    @ApiOperation(value = "新增一个Function实例")
    Function addFunction(Function function) throws BusinessException;

    @ApiOperation(value = "修改一个Function实例")
    Function updateFunction(Function function);

    @ApiOperation(value = "获取所有Function实例")
    List<Function> selectAllFunction();

    @ApiOperation(value = "根据主键删除一个Function实例")
    void deleteFunctionByFunId(String funId);

    @ApiOperation(value = "根据主键获取Function实例")
    Function selectFunctionByFunId(String funId);

}

